var a = getApp();

Page({
    data: {
        url: ""
    },
    onLoad: function(o) {
        var n = "";
        o.url ? n = o.url : o.id ? ("signV2" != o.from && (n = a.globalData.host + "/addons/yun_shop/?menu#/signPagePlu/".concat(o.id, "?i=") + a.globalData.uniacid), 
        "signV2" == o.from && (n = a.globalData.host + "/addons/yun_shop/?menu#/signPage/".concat(o.id, "?i=") + a.globalData.uniacid + "&from=signV2&scene=" + o.scene + "&cid=" + o.cid + "&oid=" + o.oid), 
        o.fromOrder && (n += "&fromOrder=1")) : wx.navigateBack({
            delta: 1
        }), this.setData({
            url: n
        }), console.log(this.data.url);
    },
    onHide: function() {},
    onUnload: function() {
        if (this.options.fromOrder) {
            var a = getCurrentPages();
            a[a.length - 2].getShopSign();
        }
    }
});